package com.swallow.auth.application.convert.dept;

import com.swallow.auth.api.dept.dto.CreateDeptDTO;
import com.swallow.auth.api.dept.dto.DeptQryRespDTO;
import com.swallow.auth.application.bo.dept.DeptQryRetBO;
import com.swallow.auth.domain.dept.model.entity.DeptEntity;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

/**
 * @author: 18310740596@163.com
 * @date: 2024-05-20 22:01:15
 * @version: v1.0
 * @describe: class responsibility
 */
@Mapper
public interface CvtDeptAppMapper {
    CvtDeptAppMapper INSTANCE = Mappers.getMapper(CvtDeptAppMapper.class);

    @Mappings({
            @Mapping(source = "deptLevel", target = "level")
    })
    DeptEntity deptDTO2Entity(CreateDeptDTO createDept);


    DeptQryRespDTO deptBO2DTO(DeptQryRetBO retBO);
}
